package cmo.neutech.day09.Score;

public class Literature extends Student{
    double lecture;
    double production;
    double midExam;
    double finalExam;
    public Literature(int sno,String name,String sex,int age,double lecture,double production,double midExam,double finalExam){
       super(sno, name, sex, age);
        this.lecture = lecture;
        this.production = production;
        this.midExam = midExam;
        this.finalExam = finalExam;
    }
    public double getScore(){
        score = 0.35*lecture+0.35*production+0.15*midExam+0.15*finalExam;
        return score;
    }
}
